package financial.sharing.center.system.model.entity;

import financial.sharing.center.common.base.BaseEntity;
import financial.sharing.center.common.enums.EnableStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @ClassName BusinessLine
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/14
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@ToString
@Entity
public class BusinessLine extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**业务线名称*/
    private String businessLineName;
    /**属于的公司*/
    private String subCompany;
    /**属于部门*/
    private String department;
    /**备注*/
    private String note;

    private Integer enableStatusValue;

    public BusinessLine() {

    }

    public BusinessLine(String businessLineName, String subCompany, String department, String note) {
        this.businessLineName = businessLineName;
        this.subCompany = subCompany;
        this.department = department;
        this.note = note;
        this.enableStatusValue = EnableStatusEnum.正常.getValue();
    }
}
